<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>美丽说,发现、收藏、分享我的美丽点滴,让改变发生</title>
	<link rel="stylesheet" href="http://localhost/meilishuo/template/default/css/meilishuo.css" />
</head>
<body>
	<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<script type="text/javascript" src="http://localhost/meilishuo/Static/jquery/jquery-1.7.2.min.js">
	
</script>
<script type="text/javascript">
	$(function(){
		$("#nav .outer .container .top_cate").hover(function(){
			$(this).children('.second_stage').show();
		},function(){
			$(this).children('.second_stage').hide();
		})
	})
</script>
<!--顶部登录注册区域开始-->
	<div id="top">
		<div class="head">
			<ul class="container">
				    <?php if($hd['session']['username'] && $hd['session']['uid']){ ?>
					<li><a class="out" href="<?php echo U('Member/out');?>">退出</a></li>
					<li class="myself"><a  href=""><img src="http://localhost/meilishuo/template/default/img/my_face.jpg" class="my_face" alt="" /><?php echo $hd['session']['username'];?></a></li>
					<li><a href=""><span class="my_love"></span>我的喜欢</a></li>
				<?php }else{ ?>
				<li><a class="first" href=""><span class="weixin"></span>微信登陆</a></li>
				<li><a href=""><span class="qq"></span>QQ登陆</a></li>
				<li><a href="<?php echo U('Member/login');?>">登陆</a></li>
				<li><a href="<?php echo U('Member/register');?>">注册</a></li>
				<?php } ?>
				<li><a href="<?php echo U('Cart/ajax_add_cart');?>"><span class="my_car"></span>我的购物车<i class="num">    <?php if($_SESSION['cart']['goods']){ ?> <?php  echo count($_SESSION['cart']['goods']) ?><?php }else{ ?>0<?php } ?> </i></a></li>
				<li><a href="<?php echo U('Porder/index');?>"><span class="my_order"></span>我的订单</a></li>
				<li><a href=""><span class="download"></span>下载App</a></li>
				<li><a class="custom" href="">客户服务</a></li>
			</ul>
		</div>
	</div>
	<!--顶部登录注册结束-->
	<!--搜索区域开始-->
		<div id="search"><!--search-->
			<div class="outside"><!--outside-->
				<a class="logo" href=""></a>
				<div class="container"><!--container-->
					<div class="baobei">
						<a href="" class="cat">
							宝贝<span class="triangle"></span>
						</a>
					</div><!--baobei-->
					<div class="magnifier"></div>
					<input placeholder="搜索流行商品" class="search_content" type="text" />
					<input class="sub" type="submit" value="搜索" />
				</div><!--container-->
			</div><!--outside-->
		</div><!--search-->
	<!--搜索区域结束-->
	
	<!--导航条开始-->
	<div id="nav">
		<div class="outer">
			<ul class=container>
				<li><a class="first" href="<?php echo U('Index/index');?>">首页</a></li>
				<?php $cate=K('Category')->get_all_data(array('pid'=>0));
		
		foreach ($cate as $k => $v) {
			$cate[$k]['son']=K('Category')->get_all_data_notree(array('pid'=>$v['cid']));
			foreach ($cate[$k]['son'] as $key => $value) {
				$cate[$k]['son'][$key]['son']=K('Category')->get_all_data_notree(array('pid'=>$value['cid']));
			}
		} ?>
				<?php foreach ($cate as $k=>$v){?>
				<li class="top_cate">
					<a class="" href="<?php echo U('List/index',array('cid'=>$v['cid']));?>"><?php echo $v['cname'];?><span class="triangle"></span></a>
					<div class="second_stage">
						<?php foreach ($v["son"] as $key=>$value){?>
						<a href="<?php echo U('List/index',array('cid'=>$value['cid']));?>"><?php echo $value['cname'];?></a>
						<?php }?>
					</div><!--second_stage-->
				</li>
				<?php }?>
			</ul><!--container-->
		</div><!--outer-->
	</div><!--nav-->

	<!--导航条结束-->
	<script type="text/javascript">
	$(function(){
		$('#show .outer .left .container').hover(function(){
			$(this).find('.right_cate').show();
		},function(){
			$(this).find('.right_cate').hide();
		})
		
		//中间轮播效果
		c=0;
		$('#show .bg .slide').eq(c).show();
		$('#show .outer .circle li').eq(c).css({'background':'#ED3577'});
		function run(){
			c++;
			c=(c==8)?0:c;
			$('#show .bg .slide').hide();
			$('#show .bg .slide').eq(c).show();
			$('#show .outer .circle li').css({'background':'pink'});
			$('#show .outer .circle li').eq(c).css({'background':'#ED3577'});
		}
		
		var timer = setInterval(function(){
			run();
		},2000);
		
			$('#show .outer .circle li').mouseenter(function() {
					
					c=$(this).index();
					clearInterval(timer);
					$(this).siblings().css({'background':'pink'});
					$(this).css({'background':'#ED3577'});
					$('#show .bg .slide').hide();
					$('#show .bg .slide').eq(c).show();

			});
			$('#show .outer .circle li').mouseleave(function() {
					clearInterval(timer);
					c=$(this).index();
					timer=setInterval(function(){run();},2000)
			});
			
			
			$('#show .outer .turn_left').click(function(){
				clearInterval(timer);
				c=c-1;
				c=(c==-1)?7:c;
				$('#show .bg .slide').hide();
				$('#show .bg .slide').eq(c).show();
				$('#show .outer .circle li').css({'background':'pink'});
				$('#show .outer .circle li').eq(c).css({'background':'#ED3577'});
				timer=setInterval(function(){run();},2000);
			});
			$('#show .outer .turn_right').click(function(){
				clearInterval(timer);
				c=c+1;
				c=(c==8)?0:c;
				$('#show .bg .slide').hide();
				$('#show .bg .slide').eq(c).show();
				$('#show .outer .circle li').css({'background':'pink'});
				$('#show .outer .circle li').eq(c).css({'background':'#ED3577'});
				timer=setInterval(function(){run();},2000);
			})
	})
	
	
	</script>
	
	<!--中间大轮播图开始-->
	<div id="show">
		<div class="outer">
			<div  class="left">
				<?php foreach ($left_cate as $k=>$v){?>
					<div  style=" padding-top:1px;"   class="container">
							<dl class="list">	
								<dt class="head"><a class="hot" href="<?php echo U('List/index',array('cid'=>$v['cid']));?>"><?php echo $v['cname'];?></a></dt>
								<?php foreach ($v["son"] as $ke=>$val){?>
								<dd><a style="color: #666;" href="<?php echo U('List/index',array('cid'=>$val['cid']));?>"><?php echo $val['cname'];?></a></dd>
								<?php }?>
								<div class="right_cate">
									<dl>
									<?php foreach ($v["son"] as $ke=>$val){?>
										<dt><a href="<?php echo U('List/index',array('cid'=>$val['cid']));?>"><?php echo $val['cname'];?></a></dt>
										<?php foreach ($val["son"] as $key=>$value){?>
										<dd><a href="<?php echo U('List/index',array('cid'=>$value['cid']));?>"><?php echo $value['cname'];?></a></dd>
										<?php }?>
									<?php }?>
									</dl>
									
								</div><!--right_cate-->
								<span class="sign">&gt;</span>
							</dl><!--list-->
					</div>
				<?php }?>
					
			</div><!--left-->
			<span class="turn_left"></span>
			<div class="right">
				        <?php
        //初始化
        $hd['list']['r'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($right_list)) {
            echo '没有数据';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($right_list as $r) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=3)break;
                //第几个值
                $hd['list'][r]['index']++;
                //第1个值
                $hd['list'][r]['first']=($listId == 0);
                //最后一个值
                $hd['list'][r]['last']= (count($right_list)-1 <= $listId);
                //总数
                $hd['list'][r]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?> 
				<a style="background-image:url(http://localhost/meilishuo/<?php echo $r['lthumb'];?>);" href="<?php echo U('Show/index',array('gid'=>$r['gid']));?>"></a>
				<?php }}?> 
			</div><!--right-->
			<span class="turn_right"></span>
			<ul class="circle"><!--轮播图小圆点-->
				<li><a href="">1</a></li>
				<li><a href="">2</a></li>
				<li><a href="">3</a></li>
				<li><a href="">4</a></li>
				<li><a href="">5</a></li>
				<li><a href="">6</a></li>
				<li><a href="">7</a></li>
				<li><a href="">8</a></li>
			</ul><!--轮播图小圆点-->
			
		</div><!--outer-->
		<ul class="bg">
			<?php foreach ($slide as $k=>$v){?>
			<li class="slide">
				<a style="background-image:url(http://localhost/meilishuo/<?php echo $v['sthumb'];?>);"  href=""></a>
			</li>
			<?php }?>
		</ul>
	</div><!--show-->
	
	
	<!--中间大轮播图结束-->
	
	<!--热销榜，流行榜，上新榜，专题榜开始-->
	<div id="bang">
		<a class="right" href=""></a>
		        <?php
        //初始化
        $hd['list']['r'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($right_list)) {
            echo '没有数据';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($right_list as $r) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=4)break;
                //第几个值
                $hd['list'][r]['index']++;
                //第1个值
                $hd['list'][r]['first']=($listId == 0);
                //最后一个值
                $hd['list'][r]['last']= (count($right_list)-1 <= $listId);
                //总数
                $hd['list'][r]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?> 
			
		<a  style="background-image:url(http://localhost/meilishuo/<?php echo $r['lthumb'];?>);" href="<?php echo U('Show/index',array('gid'=>$r['gid']));?>"></a>
		<?php }}?>
	</div>
	
	<!--热销榜，流行榜，上新榜，专题榜结束-->
	
	<!--人气推荐单品-->
	        <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($cate)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($cate as $v) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=1)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 0);
                //最后一个值
                $hd['list'][v]['last']= (count($cate)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
	<div id="hot_recom">
		<div class="head">
			<span class="pic"></span>
		</div><!--head-->
		<ul class="content">
			<div class="outer">
				<?php 
				$son_cid=K('Category')->get_son_cid($v['cid']);
				$son_cid[]=$v['cid'];
				$where='cid in (' . implode(',', $son_cid) . ')';
				$good=K('GDGView')->get_all_data($where);
				?>
				        <?php
        //初始化
        $hd['list']['value'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($good)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($good as $value) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=12)break;
                //第几个值
                $hd['list'][value]['index']++;
                //第1个值
                $hd['list'][value]['first']=($listId == 0);
                //最后一个值
                $hd['list'][value]['last']= (count($good)-1 <= $listId);
                //总数
                $hd['list'][value]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
				<li class="list">
					<a class="pic"  style="background-image:url(http://localhost/meilishuo/<?php echo $value['lthumb'];?>);"  href="<?php echo U('Show/index',array('gid'=>$value['gid']));?>"></a>
					<p class="sub_title"><a href="<?php echo U('Show/index',array('gid'=>$value['gid']));?>"><?php echo hd_substr($value['gname'],13,'...');?></a></p>
					<p class="price"><?php echo $value['price'];?><span><?php echo $value['mprice'];?></span></p>
					<p class="total_buy">414人已购买</p>
				</li><!--list-->
				<?php }}?>
				
			</div><!--outer-->
		</ul><!--content-->
	</div><!--hot_recom-->
	<?php }}?>
	
	<!--人气推荐单品结束-->
	
	<!--每日超值团购-->
	
	
	<!--每日超值团购结束-->
	<!--衣服开始-->
	        <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($cate)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=1;
            foreach ($cate as $v) {
                //开始值
                if ($listId<1) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=1)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 1);
                //最后一个值
                $hd['list'][v]['last']= (count($cate)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
	<div id="close">
		<div class="head">
			<span class="pic"></span>
			<i class='num'>今日上新 &nbsp;<strong>5653</strong>&nbsp;件</i>
			<a class="all" href="<?php echo U('List/index',array('cid'=>$v['cid']));?>">查看所有衣服&gt;</a>
		</div><!--head-->
		<div class="left">
			<?php 
				$son_cid=K('Category')->get_son_cid($v['cid']);
				$son_cid[]=$v['cid'];
				$where='cid in (' . implode(',', $son_cid) . ')';
				$good=K('GDGView')->get_all_data($where);
				?>
			        <?php
        //初始化
        $hd['list']['value'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($good)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($good as $value) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=10)break;
                //第几个值
                $hd['list'][value]['index']++;
                //第1个值
                $hd['list'][value]['first']=($listId == 0);
                //最后一个值
                $hd['list'][value]['last']= (count($good)-1 <= $listId);
                //总数
                $hd['list'][value]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
			<ul>
				<li><a  style="background-image:url(http://localhost/meilishuo/<?php echo $value['lthumb'];?>);" href="<?php echo U('Show/index',array('gid'=>$value['gid']));?>"></a></li>
			</ul>
			<?php }}?>
			<div class="bottom">
				        <?php
        //初始化
        $hd['list']['value'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($v["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($v["son"] as $value) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=1)break;
                //第几个值
                $hd['list'][value]['index']++;
                //第1个值
                $hd['list'][value]['first']=($listId == 0);
                //最后一个值
                $hd['list'][value]['last']= (count($v["son"])-1 <= $listId);
                //总数
                $hd['list'][value]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
				<dl class="container">
					<dt><a class="title" href="<?php echo U('List/index',array('cid'=>$value['cid']));?>"><?php echo $value['cname'];?></a></dt>
					        <?php
        //初始化
        $hd['list']['val'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($value["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($value["son"] as $val) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=10)break;
                //第几个值
                $hd['list'][val]['index']++;
                //第1个值
                $hd['list'][val]['first']=($listId == 0);
                //最后一个值
                $hd['list'][val]['last']= (count($value["son"])-1 <= $listId);
                //总数
                $hd['list'][val]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
					<dd><a href="<?php echo U('List/index',array('cid'=>$val['cid']));?>"><?php echo $val['cname'];?></a></dd>
					<?php }}?>
				</dl>
				<?php }}?>
				        <?php
        //初始化
        $hd['list']['value'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($v["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=1;
            foreach ($v["son"] as $value) {
                //开始值
                if ($listId<1) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=1)break;
                //第几个值
                $hd['list'][value]['index']++;
                //第1个值
                $hd['list'][value]['first']=($listId == 1);
                //最后一个值
                $hd['list'][value]['last']= (count($v["son"])-1 <= $listId);
                //总数
                $hd['list'][value]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
				<dl class="container">
					<dt><a class="title" href="<?php echo U('List/index',array('cid'=>$value['cid']));?>"><?php echo $value['cname'];?></a></dt>
					        <?php
        //初始化
        $hd['list']['val'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($value["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($value["son"] as $val) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=10)break;
                //第几个值
                $hd['list'][val]['index']++;
                //第1个值
                $hd['list'][val]['first']=($listId == 0);
                //最后一个值
                $hd['list'][val]['last']= (count($value["son"])-1 <= $listId);
                //总数
                $hd['list'][val]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
					<dd><a href="<?php echo U('List/index',array('cid'=>$val['cid']));?>"><?php echo $val['cname'];?></a></dd>
					<?php }}?>
				</dl>
				<?php }}?>
				        <?php
        //初始化
        $hd['list']['value'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($v["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=2;
            foreach ($v["son"] as $value) {
                //开始值
                if ($listId<2) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=1)break;
                //第几个值
                $hd['list'][value]['index']++;
                //第1个值
                $hd['list'][value]['first']=($listId == 2);
                //最后一个值
                $hd['list'][value]['last']= (count($v["son"])-1 <= $listId);
                //总数
                $hd['list'][value]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
				<dl class="container">
					<dt><a class="title" href="<?php echo U('List/index',array('cid'=>$value['cid']));?>"><?php echo $value['cname'];?></a></dt>
					        <?php
        //初始化
        $hd['list']['val'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($value["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($value["son"] as $val) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=10)break;
                //第几个值
                $hd['list'][val]['index']++;
                //第1个值
                $hd['list'][val]['first']=($listId == 0);
                //最后一个值
                $hd['list'][val]['last']= (count($value["son"])-1 <= $listId);
                //总数
                $hd['list'][val]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
					<dd><a href="<?php echo U('List/index',array('cid'=>$val['cid']));?>"><?php echo $val['cname'];?></a></dd>
					<?php }}?>
				</dl>
				<?php }}?>
			</div><!--bottom-->
		</div><!--left-->
		<div class="right">
			<p class="title">最热衣服<a href="<?php echo U('List/index',array('cid'=>$v['cid']));?>">更多衣服&gt;</a></p>
			        <?php
        //初始化
        $hd['list']['value'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($good)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($good as $value) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=9)break;
                //第几个值
                $hd['list'][value]['index']++;
                //第1个值
                $hd['list'][value]['first']=($listId == 0);
                //最后一个值
                $hd['list'][value]['last']= (count($good)-1 <= $listId);
                //总数
                $hd['list'][value]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
			<ul>
				<li>
					<a class="pic" href="<?php echo U('Show/index',array('gid'=>$value['gid']));?>"><img style="width: 32px; height: 32px;" src="http://localhost/meilishuo/<?php echo $value['lthumb'];?>" alt="" /></a>
					<p class="name"><a href="<?php echo U('Show/index',array('gid'=>$value['gid']));?>"><?php echo hd_substr($value['gname'],12,'...');?></a></p>
					<p>188件商品/总销量95406</p>
				</li>
			</ul>
			<?php }}?>

		</div><!--right-->
	</div><!--close-->
	<?php }}?>
	<!--衣服结束-->
	
	<!--鞋子开始-->
	        <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($cate)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=2;
            foreach ($cate as $v) {
                //开始值
                if ($listId<2) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=1)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 2);
                //最后一个值
                $hd['list'][v]['last']= (count($cate)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
	<div id="shoe">
		<div class="head">
			<span class="pic"></span>
			<i class='num'>今日上新 &nbsp;<strong>5653</strong>&nbsp;件</i>
			<a class="all" href="">查看所有鞋子&gt;</a>
		</div><!--head-->
		<div class="left">
			<?php 
				$son_cid=K('Category')->get_son_cid($v['cid']);
				$son_cid[]=$v['cid'];
				$where='cid in (' . implode(',', $son_cid) . ')';
				$good=K('GDGView')->get_all_data($where);
				?>
			        <?php
        //初始化
        $hd['list']['value'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($good)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($good as $value) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=10)break;
                //第几个值
                $hd['list'][value]['index']++;
                //第1个值
                $hd['list'][value]['first']=($listId == 0);
                //最后一个值
                $hd['list'][value]['last']= (count($good)-1 <= $listId);
                //总数
                $hd['list'][value]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
			<ul>
				<li><a  style="background-image:url(http://localhost/meilishuo/<?php echo $value['lthumb'];?>);" href="<?php echo U('Show/index',array('gid'=>$value['gid']));?>"></a></li>
			</ul>
			<?php }}?>
			<div class="bottom">
				        <?php
        //初始化
        $hd['list']['value'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($v["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($v["son"] as $value) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=1)break;
                //第几个值
                $hd['list'][value]['index']++;
                //第1个值
                $hd['list'][value]['first']=($listId == 0);
                //最后一个值
                $hd['list'][value]['last']= (count($v["son"])-1 <= $listId);
                //总数
                $hd['list'][value]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
				<dl class="container">
					<dt><a class="title" href="<?php echo U('List/index',array('cid'=>$value['cid']));?>"><?php echo $value['cname'];?></a></dt>
					        <?php
        //初始化
        $hd['list']['val'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($value["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($value["son"] as $val) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=10)break;
                //第几个值
                $hd['list'][val]['index']++;
                //第1个值
                $hd['list'][val]['first']=($listId == 0);
                //最后一个值
                $hd['list'][val]['last']= (count($value["son"])-1 <= $listId);
                //总数
                $hd['list'][val]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
					<dd><a href="<?php echo U('List/index',array('cid'=>$val['cid']));?>"><?php echo $val['cname'];?></a></dd>
					<?php }}?>
				</dl>
				<?php }}?>
				        <?php
        //初始化
        $hd['list']['value'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($v["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=1;
            foreach ($v["son"] as $value) {
                //开始值
                if ($listId<1) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=1)break;
                //第几个值
                $hd['list'][value]['index']++;
                //第1个值
                $hd['list'][value]['first']=($listId == 1);
                //最后一个值
                $hd['list'][value]['last']= (count($v["son"])-1 <= $listId);
                //总数
                $hd['list'][value]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
				<dl class="container">
					<dt><a class="title" href="<?php echo U('List/index',array('cid'=>$value['cid']));?>"><?php echo $value['cname'];?></a></dt>
					        <?php
        //初始化
        $hd['list']['val'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($value["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($value["son"] as $val) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=10)break;
                //第几个值
                $hd['list'][val]['index']++;
                //第1个值
                $hd['list'][val]['first']=($listId == 0);
                //最后一个值
                $hd['list'][val]['last']= (count($value["son"])-1 <= $listId);
                //总数
                $hd['list'][val]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
					<dd><a href="<?php echo U('List/index',array('cid'=>$val['cid']));?>"><?php echo $val['cname'];?></a></dd>
					<?php }}?>
				</dl>
				<?php }}?>
				        <?php
        //初始化
        $hd['list']['value'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($v["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=2;
            foreach ($v["son"] as $value) {
                //开始值
                if ($listId<2) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=1)break;
                //第几个值
                $hd['list'][value]['index']++;
                //第1个值
                $hd['list'][value]['first']=($listId == 2);
                //最后一个值
                $hd['list'][value]['last']= (count($v["son"])-1 <= $listId);
                //总数
                $hd['list'][value]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
				<dl class="container">
					<dt><a class="title" href="<?php echo U('List/index',array('cid'=>$value['cid']));?>"><?php echo $value['cname'];?></a></dt>
					        <?php
        //初始化
        $hd['list']['val'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($value["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($value["son"] as $val) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=10)break;
                //第几个值
                $hd['list'][val]['index']++;
                //第1个值
                $hd['list'][val]['first']=($listId == 0);
                //最后一个值
                $hd['list'][val]['last']= (count($value["son"])-1 <= $listId);
                //总数
                $hd['list'][val]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
					<dd><a href="<?php echo U('List/index',array('cid'=>$val['cid']));?>"><?php echo $val['cname'];?></a></dd>
					<?php }}?>
				</dl>
				<?php }}?>
			</div><!--bottom-->
		</div><!--left-->
		<div class="right">
			<p class="title">最热鞋子<a href="<?php echo U('List/index',array('cid'=>$v['cid']));?>">更多鞋子&gt;</a></p>
			        <?php
        //初始化
        $hd['list']['value'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($good)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($good as $value) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=9)break;
                //第几个值
                $hd['list'][value]['index']++;
                //第1个值
                $hd['list'][value]['first']=($listId == 0);
                //最后一个值
                $hd['list'][value]['last']= (count($good)-1 <= $listId);
                //总数
                $hd['list'][value]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
			<ul>
				<li>
					<a class="pic" href="<?php echo U('Show/index',array('gid'=>$value['gid']));?>"><img style="width: 32px; height: 32px;" src="http://localhost/meilishuo/<?php echo $value['lthumb'];?>" alt="" /></a>
					<p class="name"><a href="<?php echo U('Show/index',array('gid'=>$value['gid']));?>"><?php echo hd_substr($value['gname'],12,'...');?></a></p>
					<p>188件商品/总销量95406</p>
				</li>
			</ul>
			<?php }}?>

		</div><!--right-->
	</div><!--close-->
	<?php }}?>

	<!--鞋子结束-->
	
	<!--包包-->
	        <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($cate)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=3;
            foreach ($cate as $v) {
                //开始值
                if ($listId<3) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=1)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 3);
                //最后一个值
                $hd['list'][v]['last']= (count($cate)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
	<div id="bag">
		<div class="head">
			<span class="pic"></span>
			<i class='num'>今日上新 &nbsp;<strong>5653</strong>&nbsp;件</i>
			<a class="all" href="<?php echo U('List/index',array('cid'=>$v['cid']));?>">查看所有包包&gt;</a>
		</div><!--head-->
		<div class="left">
			<?php 
				$son_cid=K('Category')->get_son_cid($v['cid']);
				$son_cid[]=$v['cid'];
				$where='cid in (' . implode(',', $son_cid) . ')';
				$good=K('GDGView')->get_all_data($where);
				?>
			        <?php
        //初始化
        $hd['list']['value'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($good)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($good as $value) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=10)break;
                //第几个值
                $hd['list'][value]['index']++;
                //第1个值
                $hd['list'][value]['first']=($listId == 0);
                //最后一个值
                $hd['list'][value]['last']= (count($good)-1 <= $listId);
                //总数
                $hd['list'][value]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
			<ul>
				<li><a  style="background-image:url(http://localhost/meilishuo/<?php echo $value['lthumb'];?>);" href="<?php echo U('Show/index',array('gid'=>$value['gid']));?>"></a></li>
			</ul>
			<?php }}?>
			<div class="bottom">
				        <?php
        //初始化
        $hd['list']['value'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($v["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($v["son"] as $value) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=1)break;
                //第几个值
                $hd['list'][value]['index']++;
                //第1个值
                $hd['list'][value]['first']=($listId == 0);
                //最后一个值
                $hd['list'][value]['last']= (count($v["son"])-1 <= $listId);
                //总数
                $hd['list'][value]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
				<dl class="container">
					<dt><a class="title" href="<?php echo U('List/index',array('cid'=>$value['cid']));?>"><?php echo $value['cname'];?></a></dt>
					        <?php
        //初始化
        $hd['list']['val'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($value["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($value["son"] as $val) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=10)break;
                //第几个值
                $hd['list'][val]['index']++;
                //第1个值
                $hd['list'][val]['first']=($listId == 0);
                //最后一个值
                $hd['list'][val]['last']= (count($value["son"])-1 <= $listId);
                //总数
                $hd['list'][val]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
					<dd><a href="<?php echo U('List/index',array('cid'=>$val['cid']));?>"><?php echo $val['cname'];?></a></dd>
					<?php }}?>
				</dl>
				<?php }}?>
				        <?php
        //初始化
        $hd['list']['value'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($v["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=1;
            foreach ($v["son"] as $value) {
                //开始值
                if ($listId<1) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=1)break;
                //第几个值
                $hd['list'][value]['index']++;
                //第1个值
                $hd['list'][value]['first']=($listId == 1);
                //最后一个值
                $hd['list'][value]['last']= (count($v["son"])-1 <= $listId);
                //总数
                $hd['list'][value]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
				<dl class="container">
					<dt><a class="title" href="<?php echo U('List/index',array('cid'=>$value['cid']));?>"><?php echo $value['cname'];?></a></dt>
					        <?php
        //初始化
        $hd['list']['val'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($value["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($value["son"] as $val) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=10)break;
                //第几个值
                $hd['list'][val]['index']++;
                //第1个值
                $hd['list'][val]['first']=($listId == 0);
                //最后一个值
                $hd['list'][val]['last']= (count($value["son"])-1 <= $listId);
                //总数
                $hd['list'][val]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
					<dd><a href="<?php echo U('List/index',array('cid'=>$val['cid']));?>"><?php echo $val['cname'];?></a></dd>
					<?php }}?>
				</dl>
				<?php }}?>
				        <?php
        //初始化
        $hd['list']['value'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($v["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=2;
            foreach ($v["son"] as $value) {
                //开始值
                if ($listId<2) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=1)break;
                //第几个值
                $hd['list'][value]['index']++;
                //第1个值
                $hd['list'][value]['first']=($listId == 2);
                //最后一个值
                $hd['list'][value]['last']= (count($v["son"])-1 <= $listId);
                //总数
                $hd['list'][value]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
				<dl class="container">
					<dt><a class="title" href="<?php echo U('List/index',array('cid'=>$value['cid']));?>"><?php echo $value['cname'];?></a></dt>
					        <?php
        //初始化
        $hd['list']['val'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($value["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($value["son"] as $val) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=10)break;
                //第几个值
                $hd['list'][val]['index']++;
                //第1个值
                $hd['list'][val]['first']=($listId == 0);
                //最后一个值
                $hd['list'][val]['last']= (count($value["son"])-1 <= $listId);
                //总数
                $hd['list'][val]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
					<dd><a href="<?php echo U('List/index',array('cid'=>$val['cid']));?>"><?php echo $val['cname'];?></a></dd>
					<?php }}?>
				</dl>
				<?php }}?>
			</div><!--bottom-->
		</div><!--left-->
		<div class="right">
			<p class="title">最热包包<a href="<?php echo U('List/index',array('cid'=>$v['cid']));?>">更多包包&gt;</a></p>
			        <?php
        //初始化
        $hd['list']['value'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($good)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($good as $value) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=9)break;
                //第几个值
                $hd['list'][value]['index']++;
                //第1个值
                $hd['list'][value]['first']=($listId == 0);
                //最后一个值
                $hd['list'][value]['last']= (count($good)-1 <= $listId);
                //总数
                $hd['list'][value]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
			<ul>
				<li>
					<a class="pic" href="<?php echo U('Show/index',array('gid'=>$value['gid']));?>"><img style="width: 32px; height: 32px;" src="http://localhost/meilishuo/<?php echo $value['lthumb'];?>" alt="" /></a>
					<p class="name"><a href="<?php echo U('Show/index',array('gid'=>$value['gid']));?>"><?php echo hd_substr($value['gname'],12,'...');?></a></p>
					<p>188件商品/总销量95406</p>
				</li>
			</ul>
			<?php }}?>

		</div><!--right-->
	</div><!--close-->
	<?php }}?>
	
	<!--包包结束-->
	
	<!--配饰开始-->
	        <?php
        //初始化
        $hd['list']['v'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($cate)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=4;
            foreach ($cate as $v) {
                //开始值
                if ($listId<4) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=1)break;
                //第几个值
                $hd['list'][v]['index']++;
                //第1个值
                $hd['list'][v]['first']=($listId == 4);
                //最后一个值
                $hd['list'][v]['last']= (count($cate)-1 <= $listId);
                //总数
                $hd['list'][v]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
	<div id="decoration">
		<div class="head">
			<span class="pic"></span>
			<i class='num'>今日上新 &nbsp;<strong>5653</strong>&nbsp;件</i>
			<a class="all" href="<?php echo U('List/index',array('cid'=>$v['cid']));?>">查看所有配饰&gt;</a>
		</div><!--head-->
		<div class="left">
			<?php 
				$son_cid=K('Category')->get_son_cid($v['cid']);
				$son_cid[]=$v['cid'];
				$where='cid in (' . implode(',', $son_cid) . ')';
				$good=K('GDGView')->get_all_data($where);
				?>
			        <?php
        //初始化
        $hd['list']['value'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($good)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($good as $value) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=10)break;
                //第几个值
                $hd['list'][value]['index']++;
                //第1个值
                $hd['list'][value]['first']=($listId == 0);
                //最后一个值
                $hd['list'][value]['last']= (count($good)-1 <= $listId);
                //总数
                $hd['list'][value]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
			<ul>
				<li><a  style="background-image:url(http://localhost/meilishuo/<?php echo $value['lthumb'];?>);" href="<?php echo U('Show/index',array('gid'=>$value['gid']));?>"></a></li>
			</ul>
			<?php }}?>
			<div class="bottom">
				        <?php
        //初始化
        $hd['list']['value'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($v["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($v["son"] as $value) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=1)break;
                //第几个值
                $hd['list'][value]['index']++;
                //第1个值
                $hd['list'][value]['first']=($listId == 0);
                //最后一个值
                $hd['list'][value]['last']= (count($v["son"])-1 <= $listId);
                //总数
                $hd['list'][value]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
				<dl class="container">
					<dt><a class="title" href="<?php echo U('List/index',array('cid'=>$value['cid']));?>"><?php echo $value['cname'];?></a></dt>
					        <?php
        //初始化
        $hd['list']['val'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($value["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($value["son"] as $val) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=10)break;
                //第几个值
                $hd['list'][val]['index']++;
                //第1个值
                $hd['list'][val]['first']=($listId == 0);
                //最后一个值
                $hd['list'][val]['last']= (count($value["son"])-1 <= $listId);
                //总数
                $hd['list'][val]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
					<dd><a href="<?php echo U('List/index',array('cid'=>$val['cid']));?>"><?php echo $val['cname'];?></a></dd>
					<?php }}?>
				</dl>
				<?php }}?>
				        <?php
        //初始化
        $hd['list']['value'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($v["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=1;
            foreach ($v["son"] as $value) {
                //开始值
                if ($listId<1) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=1)break;
                //第几个值
                $hd['list'][value]['index']++;
                //第1个值
                $hd['list'][value]['first']=($listId == 1);
                //最后一个值
                $hd['list'][value]['last']= (count($v["son"])-1 <= $listId);
                //总数
                $hd['list'][value]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
				<dl class="container">
					<dt><a class="title" href="<?php echo U('List/index',array('cid'=>$value['cid']));?>"><?php echo $value['cname'];?></a></dt>
					        <?php
        //初始化
        $hd['list']['val'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($value["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($value["son"] as $val) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=10)break;
                //第几个值
                $hd['list'][val]['index']++;
                //第1个值
                $hd['list'][val]['first']=($listId == 0);
                //最后一个值
                $hd['list'][val]['last']= (count($value["son"])-1 <= $listId);
                //总数
                $hd['list'][val]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
					<dd><a href="<?php echo U('List/index',array('cid'=>$val['cid']));?>"><?php echo $val['cname'];?></a></dd>
					<?php }}?>
				</dl>
				<?php }}?>
				        <?php
        //初始化
        $hd['list']['value'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($v["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=2;
            foreach ($v["son"] as $value) {
                //开始值
                if ($listId<2) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=1)break;
                //第几个值
                $hd['list'][value]['index']++;
                //第1个值
                $hd['list'][value]['first']=($listId == 2);
                //最后一个值
                $hd['list'][value]['last']= (count($v["son"])-1 <= $listId);
                //总数
                $hd['list'][value]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
				<dl class="container">
					<dt><a class="title" href="<?php echo U('List/index',array('cid'=>$value['cid']));?>"><?php echo $value['cname'];?></a></dt>
					        <?php
        //初始化
        $hd['list']['val'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($value["son"])) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($value["son"] as $val) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=10)break;
                //第几个值
                $hd['list'][val]['index']++;
                //第1个值
                $hd['list'][val]['first']=($listId == 0);
                //最后一个值
                $hd['list'][val]['last']= (count($value["son"])-1 <= $listId);
                //总数
                $hd['list'][val]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
					<dd><a href="<?php echo U('List/index',array('cid'=>$val['cid']));?>"><?php echo $val['cname'];?></a></dd>
					<?php }}?>
				</dl>
				<?php }}?>
			</div><!--bottom-->
		</div><!--left-->
		<div class="right">
			<p class="title">最热配饰<a href="<?php echo U('List/index',array('cid'=>$v['cid']));?>">更多配饰&gt;</a></p>
			        <?php
        //初始化
        $hd['list']['value'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($good)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($good as $value) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=9)break;
                //第几个值
                $hd['list'][value]['index']++;
                //第1个值
                $hd['list'][value]['first']=($listId == 0);
                //最后一个值
                $hd['list'][value]['last']= (count($good)-1 <= $listId);
                //总数
                $hd['list'][value]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
			<ul>
				<li>
					<a class="pic" href="<?php echo U('Show/index',array('gid'=>$value['gid']));?>"><img style="width: 32px; height: 32px;" src="http://localhost/meilishuo/<?php echo $value['lthumb'];?>" alt="" /></a>
					<p class="name"><a href="<?php echo U('Show/index',array('gid'=>$value['gid']));?>"><?php echo hd_substr($value['gname'],12,'...');?></a></p>
					<p>188件商品/总销量95406</p>
				</li>
			</ul>
			<?php }}?>

		</div><!--right-->
	</div><!--close-->
	<?php }}?>
	
	<!--配饰结束-->
	
	<!--尾部开始-->
	<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!--尾部开始-->
	<div id="last">
		<ul class="head">
			<li class="first">
				<p class="title">4000-800-577</p>
				<p>美丽说客服热线</p>
				<p class="time">周一至周日：08:00-22:00</p>
			</li>
			<li>
				<p class="title">用户帮助</p>
				<a href="">新手指南</a>
				<a href="">网站地图</a>
				<a href="">意见反馈</a>
			</li>
			<li>
				<p class="title">关于我们</p>
				<a href="">关于美丽说</a>
				<a href="">联系我们</a>
				<a href="">加入美丽说</a>
				<a href="">商家进驻</a>
				<a href="">商家推广</a>
			</li>
			<li class="focus">
				<p class="title">关注我们</p>
				<a href=""><span class="xin"></span>新浪微博</a>
				<a href=""><span class="qq"></span>QQ空间</a>
				<a href=""><span class="teng"></span>腾讯微博</a>
			</li>
			<li class="">
				<p class="title">美丽说微信服务号</p>
				<img src="http://localhost/meilishuo/template/default/img/er.jpg" alt="" />
				
			</li>
			<li class="last">
				<p class="title">美丽说客户端下载</p>
				<a href=""><img src="http://localhost/meilishuo/template/default/img/download.png" alt="" /></a>
				
			</li>
		</ul><!--head-->
		<ul class="flink">
			<li>友情链接：</li>
			<li><a href="">乐淘网</a></li>
			<li><a href="">马可波罗悠哉旅游网</a></li>
			<li><a href="">优惠券应用汇</a></li>
			<li><a href="">爱乐活蜜芽宝贝</a></li>
			<li><a href="">趣分期大学生分期购物</a></li>
			<li><a href="">名鞋库</a></li>
			<li class="more"><a href="">更多&gt;&gt;</a></li>
		</ul><!--flink-->
		<div class="record">
			<p>Copyright ©2015 Meilishuo.com<a href="">电信与信息服务业务经营许可证100798号</a><a href="">企业法人营业执照</a>京ICP备11031139号  京公网安备110108006045 </p>
			<p>客服邮箱：kf@meilishuo.com  客服电话：4000-800-577  文明办网文明上网举报电话：010-82615762<a href="">违法不良信息举报中心</a><a href="">我最喜爱的人民警察评选&gt;&gt;</a></p>
		</div><!--record-->
	</div><!--last-->
	
	<!--尾部结束-->
	
	<!--尾部结束-->
	
</body>
</html>